package system_design.home.jiekou;

import system_design.home.shiti.Goods;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2022-01-07
 * Time: 10:16
 */
public class DispalyOperation implements IOperation{
    public void work(GoodsList goodsList) {
        System.out.println("打印商品");
        for (int i = 0; i < goodsList.getUsedSize(); i++) {
            Goods goods = goodsList.getGoods(i);
            System.out.println(goods);
        }
    }
}

